home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / oath.lha / oath / test / bi1.cc < prev    next >
C/C++ Source or Header  |  1991-08-29  |  693b  |  27 lines

  1. #include "oath/bigInteger.h"
  2.  
  3. #include <iostream.h>
  4.  
  5. main ()
  6.    {bigIntegerA Z = bigIntegerA::make("0");
  7.     cout << "   Z = " << Z << endl;
  8.     bigIntegerA O = bigIntegerA::make("1");
  9.     cout << "   O = " << O << endl;
  10.     bigIntegerA A = bigIntegerA::make("-1234567890");
  11.     cout << "   A = " << A << endl;
  12.     bigIntegerA B = bigIntegerA::make("-987654321");
  13.     cout << "   B = " << B << endl;
  14.     A += B;
  15.     cout << "A+=B = " << A << endl;
  16.     A += B;
  17.     cout << "A+=B = " << A << endl;
  18.     A += B;
  19.     cout << "A+=B = " << A << endl;
  20.     A += B;
  21.     cout << "A+=B = " << A << endl;
  22.     A += B;
  23.     cout << "A+=B = " << A << endl;
  24.     A += B;
  25.     cout << "A+=B = " << A << endl;
  26.    }
  27.